project(arena_tests)

find_package(GTest REQUIRED)

SET( ORIG_SRC
	../src/arena.cpp
	../src/trophy.cpp
	../src/datatable.cpp
	../src/dbmemory.cpp
	../src/dblmdb.cpp
	../src/dbsqlite.cpp
	../src/player.cpp
	../src/logger.cpp
	../src/shipai.cpp
	../src/shipdrone.cpp
	../src/shippart.cpp
	../src/shipplayer.cpp
	)

SET( TEST_SRC
	main.cpp
	test_trophy.cpp
	test_dbmemory.cpp
	test_dblmdb.cpp
	test_player.cpp
)

add_executable(arena ${TEST_SRC} ${ORIG_SRC})
target_link_libraries(arena PRIVATE GTest::GTest lmdb sqlite3)
add_test(NAME tests COMMAND arena)
add_test(arena "arena")
